package org.distributed.transaction.core.context;

import java.util.HashMap;
import java.util.Map;

import org.distributed.transaction.core.connection.TransactionConnectionProxy;
import org.distributed.transaction.core.enums.DTTransactionType;
import org.springframework.stereotype.Component;

@Component
public class TransactionConnectionProxyContext {
	
	public static Map<DTTransactionType,TransactionConnectionProxy> transactionConnectionProxyMap = new HashMap<DTTransactionType,TransactionConnectionProxy>();
	
	/**
	 * 
	 * @param transactionTypeEnum
	 * @return
	 */
	public TransactionConnectionProxy getTransactionConnectionProxy(DTTransactionType transactionTypeEnum) {
		return transactionConnectionProxyMap.get(transactionTypeEnum);
	}
	
}
